package com.cdck.safe.dete.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cdck.safe.dete.model.entity.BookRecord;
import com.cdck.safe.dete.model.query.BaseKeywordsQuery;
import com.cdck.safe.dete.model.vo.BookRecordVO;
import com.cdck.safe.dete.model.vo.MyBookRecordVO;

import java.util.List;


/**
 * (BookRecord)表服务接口
 *
 * @author wp
 * @since 2024-02-25 16:48:35
 */
public interface BookRecordService extends IService<BookRecord> {


    /**
     * 分页列表
     *
     * @return
     */
    IPage<BookRecordVO> queryByPage(BaseKeywordsQuery queryParams);


    /**
     * 获取表单数据
     *
     * @param id
     * @return
     */
    BookRecord getBookRecordFormData(Long id);

    /**
     * 新增数据
     *
     * @param bookRecord BookRecord对象
     * @return
     */
    boolean saveBookRecord (BookRecord bookRecord);

   /**
     * 修改数据
     *
     * @param id   id
     * @parambookRecord BookRecord对象
     * @return
     */
    boolean updateBookRecord(Long id, BookRecord bookRecord);

    /**
     * 删除数据
     *
     * @param idsStr id,多个以英文逗号(,)分割
     * @return
     */
    boolean deleteBookRecords(String idsStr);

    /**
     * 获取我的预约记录
     *
     * @param labId
     * @return
     */
    List<MyBookRecordVO> myBookRecord(Long labId);
}
